package com.nb.fly.repository;

import org.elasticsearch.action.search.SearchRequest;
import org.elasticsearch.action.search.SearchScrollRequest;
import org.elasticsearch.action.update.UpdateRequest;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
public interface ShopRepository {

    /**
     * 查询商户列表
     * @param request
     * @return
     * @throws Exception
     */
    Map<String,Object>  shopList(SearchRequest request) throws  Exception;

    /**
     * 查询商户列表
     * @param request
     * @return
     * @throws Exception
     */
    Map<String,Object>  shopList(SearchScrollRequest request) throws  Exception;

    /**
     * 更新参数
     * @param request
     * @throws Exception
     */
    void update(UpdateRequest request) throws Exception;
}
